<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>黑马书籍商城--添加书籍</title>
	</head>
	<body>
		<h3 style="text-align: center;">黑马书籍商城--牛人书店</h3>
		<p style="text-align: center;">
			欢迎尊贵的铂金会员
			<span style="color: red;">
			 	${existUser.name}
			</span> 
			<a href="${pageContext.request.contextPath}/BookServlet?method=findAll">首页</a>
			<a href="${pageContext.request.contextPath}/CartServlet?method=findAll">购物车</a>
			<a href="${pageContext.request.contextPath}/LogoutServlet">[退出登录]</a>
		</p>
		<hr />
		<form action="${pageContext.request.contextPath}/insert" method="post">
		<input type="hidden" name="token" value="${token}" />
		<table border="1" width="350" align="center">
			<thead>
				<tr>
					<th colspan="2">添加操作</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>
						书籍名称
					</td>
					<td>
						<input type="text" name="bookname"/>
					</td>
				</tr>
				<tr>
					<td>
						作者
					</td>
					<td>
						<input type="text" name="author" />
					</td>
				</tr>
				<tr>
					<td>
						价格
					</td>
					<td>
						<input type="text" name="price" />
					</td>
				</tr>
				<tr>
					<td>
						备注
					</td>
					<td>
						<textarea rows="3" cols="14" name="b_desc"></textarea>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<input type="submit" value="添加"/>
					</td>	
				</tr>
			</tbody>
		</table>
	</form>
	</body>
</html>
